function checkLogin(deep) {
    var url = "php/login/checkLogin.php";
    var loginPage = "pages/login.html";
    if (deep) {
        url = "../" + url;
        loginPage = "../" + loginPage;
    }
    $.post(url, function (res) {
        if (res.code == 101) {
            layer.alert(res.msg,{icon:4,title:"登录提示"}, function () {
                location.href = loginPage;
            });
    }
    },"json");
}